import React from 'react'

export const data = {
	list: [{
		name: '张三',
		age: 18
	}, {
		name: '李四',
		age: 20
	}, {
		name: '王五',
		age: 30
	}],
	addList: (value) => {}
}

const golbalContext = React.createContext(data)

export const { Provider, Consumer } = golbalContext

export default golbalContext